package com.qf.fmall.dao;

import com.qf.fmall.entity.ShoppingCart;
import com.qf.fmall.entity.ShoppingCartVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShoppingCartMapper extends tk.mybatis.mapper.common.Mapper<ShoppingCart>, tk.mybatis.mapper.common.MySqlMapper<ShoppingCart> {
    List<ShoppingCartVo> listByUserId(@Param("userId") Integer userId);

    Integer updateCart(@Param("cid") Integer cid, @Param("cnum") Integer cnum);

    List<ShoppingCartVo> listByCids(List<String> list);
}